<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<title>layui</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel='stylesheet' href='../plugins/layui/css/layui.css' media='all'>
	<link rel="stylesheet" media="all" href="../static/css/jiao_cai.css" />
	<style>
		.site-doc-icon li {
			width: 315px;
		}

		.site-doc-icon li .layui-anim {
			min-width: 180px;
			min-height: 108px;
			line-height: 29px;
			margin: 3px 10px;
			text-align: center;
			background-color: #009688;
			cursor: pointer;
			color: #fff;
			border-radius: 8%;
		}

		li {
			margin: 10px 20px;
			padding-top: 10px !important;
		}
	</style>
</head>

<body>
	<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
		<!--<legend></legend>-->
	</fieldset>
	<div class="kit-table">
		<ul class="site-doc-icon site-doc-anim">
			<li style="width: 222px; border: aliceblue;">
				<div class="layui-anim" data-anim="layui-anim-up" style="background-size: 100%;width: 10px;box-shadow: 8px 5px 1px #888888;" onclick="" >
                    <div onclick="detail(1)">
                        <img src="../static/img/weixin.png"  width="65" higth="200" style="margin-top: 10px;"/>
                        <p style="margin-top: 3px;">学员未绑定微信手机端</p>
                        <p id="noBind" style="font-weight: 800; /* color: red; */ font-size: 18px;">0</p>
                    </div>
				</div>
			</li>
			<li style="width: 222px; border: aliceblue;">
				<div class="layui-anim" data-anim="layui-anim-up" style="background-size: 100%;width: 10px;box-shadow: 8px 5px 1px #888888;" onclick="" >
                    <div onclick="detail(1)">
                        <img src="../static/img/weixin.png"  width="65" higth="200" style="margin-top: 10px;"/>
                        <p style="margin-top: 3px;">学员未未登记微信ID</p>
                        <p id="noRegist" style="font-weight: 800; /* color: red; */ font-size: 18px;">0</p>
                    </div>
				</div>
			</li>
		</ul>
	</div>
<script src='../common/js/jquery.js'></script>
<script src="../static/js/base.js" type="text/javascript" charset="utf-8"></script>
<script src="../plugins/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<!-- 注意：如果你直接复制所有代码到本地，上述js路径需要改成你本地的 -->
<script>
    $('docment').ready(function() {
        $.ajax({
            url:baseUrl+ '/students/statics',
            type: 'get',
            success: function(data) {
                data = data.data;
                var noBindSize = data.noBindWixin.length;
                var noRegistSize = data.noRegistWeixin.length;
                $("#noBind").text(noBindSize);
                $("#noRegist").text(noRegistSize);
                console.log(data);
            }
        })
    });

    function lessonlist(id) {
        parent.layer.open({
            title: 'Lesson Info',
            maxmin: true,
            type: 2,
            area: ['620px', '520px'],
            content: './views/LessonView.html?id='+id,
            btn: ['Close'],
            btn2: function(index, layero) {
            }
        });
    }

    var detail = function(type) {
        parent.layer.open({
            maxmin: true,
            type: 2,
            area: ['1682px', '500px'],
			content: './views/StudentManager.html?&type='+type,
            btn: ['close'],
            yes: function(index, layero) {
                parent.layer.close(index);
                // var data = $(layero).find("iframe")[0].contentWindow.callback_save();
                // console.log(layero);
                // $.ajax({
                // 	url:baseUrl+ '/leaveRequests',
                // 	type: 'POST',
                // 	data: data,
                // 	success: function(data) {
                // 		alert(data.msg);
                // 		parent.layer.close(index);
                // 		$('#_table').bootstrapTable('refresh');
                // 	}
                // });
            },
            btn2: function(index, layero) {
                parent.layer.close(index);
                //按钮【按钮二】的回调
                console.log(layero);
                //return false 开启该代码可禁止点击该按钮关闭
            }
        });
    }

</script>

</body>

</html>